package com.luoye.lj.platform.dao;


import com.luoye.lj.platform.model.domain.AuthInfo;
import com.luoye.lj.platform.model.domain.RUnitInfo;
import com.luoye.lj.platform.model.domain.RoleInfo;
import com.luoye.lj.platform.model.domain.manage.ManageLog;
import com.luoye.lj.platform.model.domain.manage.ManageLogCollection;
import com.luoye.lj.platform.model.domain.manage.ManageLogSearchCondition;
import com.luoye.lj.platform.model.domain.muser.MUserDetailCollection;
import com.luoye.lj.platform.model.domain.muser.MUserDetailSearchCondition;
import com.luoye.lj.platform.model.domain.muser.MUserInfo;
import com.luoye.lj.platform.model.domain.muser.MUserSaveInfo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-9-29
 * Time: 上午10:08
 * To change this template use File | Settings | File Templates.
 */
public interface IMuserserviceDao {
    MUserInfo getUserByName(String username);
    RoleInfo getRoleById(long id);
    List<AuthInfo> getAuthsByRid(long rid);
    int insertUser(MUserInfo mUserInfo);
    List<RoleInfo> getAllRole();
    MUserInfo getUserById(long id);
    int updateUser(MUserInfo mUserInfo);
    int insertLog(ManageLog manageLog);
    MUserDetailCollection searchUserDetailByCondition(MUserDetailSearchCondition muserDetailSearchCondition);
    ManageLogCollection searchManageLogByCondition(ManageLogSearchCondition manageLogSearchCondition);
    List<RoleInfo> getRolesByUid(long uid);
    int addUrr(MUserSaveInfo mUserSaveInfo);
    int delUrr(long uid);
}
